#!/bin/bash

# Yao Framework 环境配置脚本
echo "🚀 Yao Framework 环境配置"
echo "=========================="

# 设置DeepSeek API密钥
echo "设置DeepSeek API密钥..."
export DEEPSEEK_API_KEY="sk-e86d943b677d47599abe6b89e98097b4"

# 添加到shell配置文件
echo "将环境变量添加到 ~/.zshrc..."
echo "" >> ~/.zshrc
echo "# Yao Framework 配置" >> ~/.zshrc
echo "export DEEPSEEK_API_KEY=\"sk-e86d943b677d47599abe6b89e98097b4\"" >> ~/.zshrc

echo "✅ 环境配置完成！"
echo ""
echo "现在可以运行测试："
echo "  cjpm build"
echo "  ./target/release/bin/yao.examples.simple_agent_macro_test"
echo ""
echo "或者手动设置："
echo "  export DEEPSEEK_API_KEY=your_api_key_here"
